package com.zcah.sensitive.dao;

import com.zcah.sensitive.entity.SenInfo;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SenInfoMetaRepository extends JpaRepository<SenInfo, Long> {
   /* @Query("select s from SenInfo s  where s.date=?1 and s.time=?2 ")
    SenInfo findOneSenInfoByDateAndTime(String Date, String Time, Pageable page);*/

    List<SenInfo> findSenInfosByDate(String Date);
}
